<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::MTLReader类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_m_t_l_reader.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1_m_t_l_reader-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::MTLReader类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8bf80c234bbcdc338f4d7ee5827d65e3"><td class="memItemLeft" align="right" valign="top"><a id="a8bf80c234bbcdc338f4d7ee5827d65e3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a8bf80c234bbcdc338f4d7ee5827d65e3">MTLReader</a> ()</td></tr>
<tr class="memdesc:a8bf80c234bbcdc338f4d7ee5827d65e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">empty constructor <br /></td></tr>
<tr class="separator:a8bf80c234bbcdc338f4d7ee5827d65e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a080a16baad8d7e11d61eb54a800dc26a"><td class="memItemLeft" align="right" valign="top"><a id="a080a16baad8d7e11d61eb54a800dc26a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a080a16baad8d7e11d61eb54a800dc26a">~MTLReader</a> ()</td></tr>
<tr class="memdesc:a080a16baad8d7e11d61eb54a800dc26a"><td class="mdescLeft">&#160;</td><td class="mdescRight">empty destructor <br /></td></tr>
<tr class="separator:a080a16baad8d7e11d61eb54a800dc26a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38377772d23a894bda88389a2d3b1ed4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a38377772d23a894bda88389a2d3b1ed4">read</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:a38377772d23a894bda88389a2d3b1ed4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a MTL file given its full path.  <a href="classpcl_1_1_m_t_l_reader.html#a38377772d23a894bda88389a2d3b1ed4">更多...</a><br /></td></tr>
<tr class="separator:a38377772d23a894bda88389a2d3b1ed4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad71cc8087f8f9ccf5e262341ff26dacc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#ad71cc8087f8f9ccf5e262341ff26dacc">read</a> (const std::string &amp;obj_file_name, const std::string &amp;mtl_file_name)</td></tr>
<tr class="memdesc:ad71cc8087f8f9ccf5e262341ff26dacc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a MTL file given an OBJ file full path and the MTL file name.  <a href="classpcl_1_1_m_t_l_reader.html#ad71cc8087f8f9ccf5e262341ff26dacc">更多...</a><br /></td></tr>
<tr class="separator:ad71cc8087f8f9ccf5e262341ff26dacc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53c227e33923e789ba63d1619500f637"><td class="memItemLeft" align="right" valign="top"><a id="a53c227e33923e789ba63d1619500f637"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_tex_material.html">pcl::TexMaterial</a> &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>getMaterial</b> (const std::string &amp;material_name) const</td></tr>
<tr class="separator:a53c227e33923e789ba63d1619500f637"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a9245ad5594ef3c563c8b8a863d5d6a3d"><td class="memItemLeft" align="right" valign="top"><a id="a9245ad5594ef3c563c8b8a863d5d6a3d"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_tex_material.html">pcl::TexMaterial</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a9245ad5594ef3c563c8b8a863d5d6a3d">materials_</a></td></tr>
<tr class="memdesc:a9245ad5594ef3c563c8b8a863d5d6a3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">materials array <br /></td></tr>
<tr class="separator:a9245ad5594ef3c563c8b8a863d5d6a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a50088d84e51901365e4b6b825cf7a613"><td class="memItemLeft" align="right" valign="top"><a id="a50088d84e51901365e4b6b825cf7a613"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a50088d84e51901365e4b6b825cf7a613">cie2rgb</a> (const Eigen::Vector3f &amp;xyz, <a class="el" href="structpcl_1_1_tex_material_1_1_r_g_b.html">pcl::TexMaterial::RGB</a> &amp;rgb) const</td></tr>
<tr class="memdesc:a50088d84e51901365e4b6b825cf7a613"><td class="mdescLeft">&#160;</td><td class="mdescRight">converts CIE XYZ to <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> <br /></td></tr>
<tr class="separator:a50088d84e51901365e4b6b825cf7a613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d0444de0edcd49d7a9a4b29ebefd0b5"><td class="memItemLeft" align="right" valign="top"><a id="a6d0444de0edcd49d7a9a4b29ebefd0b5"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a6d0444de0edcd49d7a9a4b29ebefd0b5">fillRGBfromXYZ</a> (const std::vector&lt; std::string &gt; &amp;split_line, <a class="el" href="structpcl_1_1_tex_material_1_1_r_g_b.html">pcl::TexMaterial::RGB</a> &amp;rgb)</td></tr>
<tr class="memdesc:a6d0444de0edcd49d7a9a4b29ebefd0b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">fill a <a class="el" href="structpcl_1_1_tex_material_1_1_r_g_b.html">pcl::TexMaterial::RGB</a> from a split line containing CIE x y z values <br /></td></tr>
<tr class="separator:a6d0444de0edcd49d7a9a4b29ebefd0b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13a47926d9ede213fae9396d71ec806e"><td class="memItemLeft" align="right" valign="top"><a id="a13a47926d9ede213fae9396d71ec806e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a13a47926d9ede213fae9396d71ec806e">fillRGBfromRGB</a> (const std::vector&lt; std::string &gt; &amp;split_line, <a class="el" href="structpcl_1_1_tex_material_1_1_r_g_b.html">pcl::TexMaterial::RGB</a> &amp;rgb)</td></tr>
<tr class="memdesc:a13a47926d9ede213fae9396d71ec806e"><td class="mdescLeft">&#160;</td><td class="mdescRight">fill a <a class="el" href="structpcl_1_1_tex_material_1_1_r_g_b.html">pcl::TexMaterial::RGB</a> from a split line containing r g b values <br /></td></tr>
<tr class="separator:a13a47926d9ede213fae9396d71ec806e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a0412da91bda7cc153c999f9cec3220ab"><td class="memItemLeft" align="right" valign="top"><a id="a0412da91bda7cc153c999f9cec3220ab"></a>
Eigen::Matrix3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_m_t_l_reader.html#a0412da91bda7cc153c999f9cec3220ab">xyz_to_rgb_matrix_</a></td></tr>
<tr class="memdesc:a0412da91bda7cc153c999f9cec3220ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">matrix to convert CIE to <a class="el" href="structpcl_1_1_r_g_b.html" title="A structure representing RGB color information.">RGB</a> <br /></td></tr>
<tr class="separator:a0412da91bda7cc153c999f9cec3220ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a id="a38377772d23a894bda88389a2d3b1ed4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38377772d23a894bda88389a2d3b1ed4">&#9670;&nbsp;</a></span>read() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int pcl::MTLReader::read </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a MTL file given its full path. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>full path to MTL file </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0 on success &lt; 0 else. </dd></dl>

</div>
</div>
<a id="ad71cc8087f8f9ccf5e262341ff26dacc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad71cc8087f8f9ccf5e262341ff26dacc">&#9670;&nbsp;</a></span>read() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int pcl::MTLReader::read </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>obj_file_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>mtl_file_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a MTL file given an OBJ file full path and the MTL file name. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">obj_file_name</td><td>full path to OBJ file </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mtl_file_name</td><td>MTL file name </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0 on success &lt; 0 else. </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>io/include/pcl/io/<a class="el" href="obj__io_8h_source.html">obj_io.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_m_t_l_reader.html">MTLReader</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
